package org.ourgrid.broker.scheduler.workqueue.xmlcreator;

public class StartWorkXMLCreator implements XMLCreatorIF{

	/**
	 * <START_WORK workerID='String' requestID='long' jobID='int' 
	 * taskID='int' processID='int'/> 
	 */
	public String getXML(String workerID, long requestID, int jobID, 
			int taskID, int processID){
		
		StringBuffer buffer = new StringBuffer();
		
		buffer.append("<START_WORK ");
		buffer.append("workerID='" + workerID + "' ");
		buffer.append("requestID='" + requestID + "' ");
		buffer.append("jobID='" + jobID + "' ");
		buffer.append("taskID='" + taskID + "' ");
		buffer.append("processID='" + processID + "' ");
		buffer.append("/>");
		
		return buffer.toString();
	}
}
